﻿using BySoft.Server.Common.Entity;
using BySoft.Server.Common.Schema;
using BySoft.Server.DataAccess;
using System;
using System.Collections.Generic;
using System.Data;
using System.Linq;
using System.Text;


//==================================================================================
//
//        Copyright (C) 2014-2016 SRC Studio   
//        All rights reserved
//
//        Filename :Product
//
//        Created by Administrator at  2016-05-20 22:39:13
//        http://www.seven-rosy-clouds.com
//
//        Description :  
//
//        Change History :
//
//	Version    Date                      Author           Description  
// ----------------------------------------------------------------------------------
//  	1.0  2016-05-20 22:39:13        Administrator    Created.
//   
//
//===================================================================================

namespace BySoft.Server.Business
{

  public partial class MdProduct:BusinessEntityBase<MdProductEntity>
    {
      public MdProduct(){
         EntityTableProperty=
          new EntityProperty() { 
              TableName = "MD_Product",
              IDString = "ProductID", 
              NameString = "ProductName" };

      }

      public static DataTable SelectList(string ProductID, string ProductName, string strProductTypeID,
                int pageIndex, int pageSize, out int m_count)
      {

          return MdProductDA.SelectList(ProductID, ProductName, strProductTypeID, pageIndex, pageSize, out m_count);
      }
      public static bool Save(MdProductEntity product,  List<MdAttachmentEntity> lstMapFile,
          List<MdAttachmentEntity> lstTechFile, bool isNew)
      {

          return MdProductDA.Save(product,  lstMapFile, lstTechFile, isNew);
      
      }



    }
}
